home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: How do you pass along a variable argument list?
- Date: 12 Jan 1996 06:01:39 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Jan11230139@qcd.lanl.gov>
- References: <4d1i8v$k8h@news.mcl.bdm.com> <4d30nv$k8r@tahko.lpr.carel.fi>
- <TANMOY.96Jan11091945@qcd.lanl.gov>
- <30f5cfa3.8792640@nntp.ix.netcom.com>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: miker3@ix.netcom.com's message of Fri, 12 Jan 1996 03:54:38 GMT
-
- --text follows this line--
- In article <30f5cfa3.8792640@nntp.ix.netcom.com> miker3@ix.netcom.com
- (Mike Rubenstein) writes:
- <snip>
- |>
- |> #include <stdio.h>
- |> #include <stdarg.h>
- |>
- |> void MyPrintf(char *fmt, ...)
- |> {
- |> va_list argp;
- |>
- |> va_start(argp, fmt);
- |> printf(fmt, argp);
- |>
- |>Did you try this? A conforming compiler is _required_ to diagnose
- this.
- |>
- |> va_end(argp);
- |> }
-
- I'm missing something here. Why is a conforming compiler required
- to
-
- No you are not. I am. My brains.
-
- Apologies to all for this stupidity (I am continually amazed at my
- capacity for misspeaking): the code is definitely wrong, but there is
- no _requirement_ for diagnosis.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-